<?php

require('config.php');
header('Content-type: text/html; charset=utf-8'); // en-tête HTTP
$page = new rootLayoutPrint();
$page->addJavaScript('generate_pdf.js');
$translate = tmxTranslate('place_detail.xml', REP_XLAT_TEMPLATE);
$tpl_file='generate_report_pdf.tpl';
$generate_report_pdf = new flyLayout(REP_TPL . $tpl_file);
$generate_report_pdf->start();
$listmap = modelLocationMap::getListFlexible(null,null,null, null, null,2);
 if($listmap->size() > 0) {
 	$id_data = '';
    foreach($listmap as $key => $location_map){
    	//$generate_report_pdf->setVariable('url_create_report_pdf', 'create_report_pdf.php');
    	//$generate_report_pdf->setVariable('language_link', $location_map->language_link);
    	$id_data .= $location_map->language_link.' , ';
    }
    $generate_report_pdf->setVariable('id_data', $id_data);
 }
$generate_report_pdf->stop();
$page->setBody($generate_report_pdf);
$page->display();

?>